import http from '@zt/zongheng-pro/framework/http'

/**
* 分页
* @param {Object} params
*
*/

export function contractList (data)
{
    return http.post('contract/list', data)
}

/**
* 删除
* @param {Object} data
*/
export function contractDel (data) {
    return http.post('contract/delete', data)
}

/**
* 新增或修改
* @param {Object} data
*/
export function contractSaveOrUpdate (data) {
    const url = data.id ? 'contract/update' : 'contract/save'
    return http.post(url, data)
}

/**
* 获取详情
* @param {Long} id
* @returns
*/
export function contractGetById (id) {
    return http.get('contract/getById/' + id)
}


